// 只放账号管理模块的接口
import request from '@/utils/request'

// 接口管理


/* 1.登录 */
export const checkLogin = (data)=>{
  return request({
    method:'post',
    url:'/users/checkLogin',
    data:data
  })
}



// 登录
export const login = (params, headers) =>
  request({
    url: '/bridata-auth/oauth/token',
    method: 'post',
    headers,
    params
  })

  // 菜单权限
export const userMenuAuth = params =>
request({
  url: '/bridata-system/menu/routes',
  method: 'get',
  params
})

// 退出登录，不传参数，带上token即可，request里面统一处理
export const logout = () =>
  request({
    url: '/bridata-auth/oauth/logout',
    method: 'get'
  })
